package com.shanghaionstar.user.presenter;

import com.onstar.cn.common.log.LogManager;
import com.onstar.cn.framework.mvp.base.IMVPScheduler;
import com.onstar.cn.framework.mvp.base.IMVPView;
import com.onstar.cn.framework.mvp.base.core.BasePresenter;
import com.onstar.cn.more.response.PersonalInfoResponse;
import com.shanghaionstar.user.iview.IChangeContactView;
import com.shanghaionstar.user.service.ChangeContactService;

/**
 * Created by 7828wc on 16/7/1.
 */
public class ChangeContactPresenter extends BasePresenter<PersonalInfoResponse> {
    private IChangeContactView changeContactView;
    private LogManager log = LogManager.getInstance();
    private ChangeContactService service;


    public ChangeContactPresenter(IMVPScheduler mvpScheduler) {
        super(mvpScheduler);
    }


    @Override
    public void setView(IMVPView view) {
        super.setView(view);
        this.changeContactView = (IChangeContactView) view;
        service = new ChangeContactService(changeContactView.onActivity());
        super.setServiceProvider(service);
    }

    public void setUserInfo(String province, String city, String address, String code) {
        service.setUserInfo(province, city, address, code);
    }
}
